﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ipchk.aspx.cs" Inherits="UI_ipchk" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>IP访问管理</title>
    <link href="../images/style.css" rel="Stylesheet" />

    <script language="javascript" type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>

    <script src="../js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/pagefunction.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1" id="tb" width="100%" class="tableBorder" cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="3">
                    ＩＰ 访 问 管 理
                </th>
            </tr>
            <tr>
                <td>
                    起始IP
                </td>
                <td>
                    终止IP
                </td>
                <td>
                    操作行为<span style="color: blue">[相同则只封锁指定ip]</span>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <font color="red">注意：请不要将您当前的ip[<%=FTchina.basic.GetUserIp(this) %>]封锁，否则您将无法访问系统</font>
                </td>
            </tr>
            <tr>
                <td style="width: 250px">
                    <asp:TextBox title='header=[说明] body=[请输入起始IP地址，如果起始终止IP相同，则只封锁这一个IP，否则封锁指定IP段]'
                        ID="txbbip" AutoPostBack="true" runat="server" OnTextChanged="txbbip_TextChanged"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Display="Dynamic"
                        ControlToValidate="txbbip" ErrorMessage="请输入正确的IP地址" ValidationExpression="^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$"></asp:RegularExpressionValidator>
                </td>
                <td style="width: 250px">
                    <asp:TextBox title='header=[说明] body=[请输入终止IP地址，如果起始终止IP相同，则只封锁这一个IP，否则封锁指定IP段]'
                        ID="txbeip" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="rxv" runat="server" Display="Dynamic" ControlToValidate="txbeip"
                        ErrorMessage="请输入正确的IP地址" ValidationExpression="^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$"></asp:RegularExpressionValidator>
                </td>
                <td>
                    <asp:Button ID="btnok" CssClass="btn" runat="server" Text="确定添加" OnClick="btnok_Click" />
                </td>
            </tr>
            <asp:Literal ID="litiplist" runat="server" EnableViewState="false"></asp:Literal>
        </table>
    </div>
    
    </form>

    <script type="text/javascript">

        var csseven = { 'background-color': 'f4f5eb' };
        var cssodd = { 'background-color': '' };
        var csshover = { 'background-color': 'CCFF99' };
        $('#tb  tr:even').css(csseven);
        $("#tb   tr:even").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(csseven); }
          );
        $("#tb   tr:odd").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(cssodd); }
          );
    </script>

</body>
</html>
